@jamrom2 If you removed the brackets from the file names, then you have to remove the bracket from the script too. :
croppedfilename=${filename//Disk*.atr/}
You know, it's a quick and dirty script, written only to save time with the common format. If you change the format of your filenames, then you have to adapt the script to your format.